package game;

import java.awt.Graphics2D;

class Opening extends Scene
{
	Background bg1;
	float time = 0, timeMax = 4;
	
	public Opening()
	{
		bg1 = new Background(0);
	}

	public void update()
	{
		time += Time.getInstance().getLoopTime();
		
		if(time>timeMax)
			SceneManager.changeScene(0);
		
		bg1.Update();
	}
	
	public void draw(Graphics2D g2d)
	{
		bg1.draw(g2d);
	}
}
